# 1.1
# str1=input("输入人名：")
# str2=input("输入国名：")
# print("世界这么大，{}想去{}看看。".format(str1,str2))

# 1.2
# n = input("请输入正整数n：")
# sum = 0
# for i in range(int(n)):
#     sum += i + 1  # i=i+1   sum=sum+i
# print("1到{}的和为：{}".format(n, sum))

# 1.3!!!
# for i in range(1, 10):
#     for j in range(1, i + 1):
#         print("{}*{}={:2}".format(i, j, i * j), end=" ")
#     print(" ")

# 1.4
# sum, tmp = 0, 1
# for i in range(1, 11):
#     tmp *= i
#     sum += tmp
# print("结果为：{}".format(sum))

# 1.5
# n = 1
# for i in range(5, 1, -1):
#     n = (n + 1) << 1  # << 转为二进制后，向左移一位（小数点向右移一位），即扩大2倍
# print(n)
# print(5<<1)

# 1.6
# diet = ['西红柿', '花菜', '黄瓜', '牛排', '虾仁']
# for i in range(0, 5):
#     for j in range(0, 5):
#         # for j in range(0,i+1):
#         if not (i == j):
#             print("{}-{}".format(diet[i], diet[j]))

# 1.7
# from turtle import *
# fillcolor("yellow")
# begin_fill()
# while True:
#     forward(200)
#     right(144)
#     if abs(pos())<1:
#         break
# end_fill()

# 1.8
# from turtle import *
#
# color("red", "yellow")
# begin_fill()
# while True:
#     forward(200)
#     left(170)
#     if abs(pos()) < 1:
#         break
# end_fill()
# done()

import math

# dayup = math.pow((1.0+0.001),365)
# daydown=math.pow((1.0-0.001),365)
# print("提高{:.2f},下降{:.2f}".format(dayup,daydown))
#
# dayup = math.pow((1.0+0.005),365)
# daydown=math.pow((1.0-0.005),365)
# print("提高{:.2f},下降{:.2f}".format(dayup,daydown))
#
# dayfactor=0.01
# dayup=math.pow((1+dayfactor),365)
# daydown=math.pow((1-dayfactor),365)
# print("提高{:.2f},下降{:.2f}".format(dayup,daydown))

# list1 = [0, 1, 2, 3, 4, 5, 6]
# dayup, dayfactor = 1, 0.01
# for i in range(365):
#     if i % 7 in [6, 0]:  # [6,0] 余数为0或6，下降
#         dayup = dayup * (1 - dayfactor)
#         else:
#         '''
#         # elif i%7 in range(1,6):
#         # elif i%7 in list1[1:7]:
#         '''
#         dayup = dayup * (1 + dayfactor)
# print("提高5天，下降2天：{:.2f}".format(dayup))

# def dayUp(df):
#     dayup=1.0
#     for i in range(365):
#         if i%7 in [0,6]:
#             dayup=dayup*(1-0.01)
#         else:
#             dayup=dayup*(1+df)
#     return dayup
# dayfactor=0.01
# while(dayUp(dayfactor)<37.78):
#     dayfactor+=0.001
# print("每天努力的参数是：{:.3f}".format(dayfactor))

# weekstr="周一周二周三周四周五周六周日"
# weekid=eval(input('请输入数字（1~7）：'))
# pos= (weekid-1)*2
# print(weekstr[pos:pos+2])

